package com.dy.video.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.dy.comments.Comments;
import com.dy.video.service.CommentsService;
import com.dy.video.mapper.CommentsMapper;
import entity.vo.CommentsVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
* @author DELL
* @description 针对表【comments】的数据库操作Service实现
* @createDate 2024-11-27 09:01:45
*/
@Service
public class CommentsServiceImpl extends ServiceImpl<CommentsMapper, Comments>
    implements CommentsService{

    @Autowired
    CommentsMapper commentsMapper;

    @Override
    public List<CommentsVo> commentAll(Integer id) {
        return commentsMapper.commentAll(id);
    }

    @Override
    public int tongji(Integer id) {
        return commentsMapper.tongji(id);
    }
}




